package com.qiche.requestpram;

import lombok.Data;

import java.util.Date;

/**
 * PC端 预约|服务列表过滤条件
 * @author chendezhi
 * @date 2018/3/14 10:59
 */
@Data
public class SubscribeParam {
    private Integer pageNo;
    private Integer startRow;
    private Integer pageSize;
    private Date startTime;
    private Date endTime;
    private String keyword;
    private String productName;
    private Long merchantId;
    private Byte subscribeStatus;
    private Byte payStatus;
    private Byte typeStatus;
    private Integer total;

    public Integer getStartRow() {
        if (pageNo!=null&&pageSize!=null){
            return (pageNo-1)*pageSize;
        }
        return startRow;
    }

    public void setStartRow(Integer startRow) {
        this.startRow = startRow;
    }
}
